<?php /*a:4:{s:113:"/www/wwwroot/dianshu/application/admin/view/default/../../../plugins/view/expressforkdn/index/public/content.html";i:1568885128;s:106:"/www/wwwroot/dianshu/application/admin/view/default/../../../plugins/view/oss_1jian/admin/admin/index.html";i:1570677322;s:70:"/www/wwwroot/dianshu/application/admin/view/default/public/header.html";i:1568774834;s:70:"/www/wwwroot/dianshu/application/admin/view/default/public/footer.html";i:1572600796;}*/ ?>
<!DOCTYPE html>
<html>
<head>
	<meta charset="<?php echo config('shopxo.default_charset', 'utf-8'); ?>" />
	<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1, maximum-scale=1" />
	<title>ShopXO后台管理系统</title>
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/assets/css/amazeui.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-switch/amazeui.switch.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-chosen/amazeui.chosen.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-tagsinput/amazeui.tagsinput.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/css/common.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/<?php echo htmlentities($default_theme); ?>/css/common.css" />
	<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/admin/<?php echo htmlentities($default_theme); ?>/css/iconfontmenu.css" />
    <?php if(!empty($plugins_css)): ?>
        <link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($plugins_css); ?>" />
    <?php endif; if(!empty($module_css)): ?>
		<link rel="stylesheet" type="text/css" href="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($module_css); ?>" />
	<?php endif; ?>

	<!-- css钩子 -->
    <?php if(!empty($plugins_admin_css_data) and is_array($plugins_admin_css_data)): foreach($plugins_admin_css_data as $hook): if(is_string($hook)): ?>
                <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($hook); ?>?v=<?php echo MyC('home_static_cache_version'); ?>" />
            <?php elseif(is_array($hook)): foreach($hook as $hook_css): if(is_string($hook_css)): ?>
                        <link rel="stylesheet" type="text/css" href="<?php echo htmlentities($hook_css); ?>?v=<?php echo MyC('home_static_cache_version'); ?>" />
                    <?php endif; ?>
                <?php endforeach; ?>
            <?php endif; ?>
        <?php endforeach; ?>
    <?php endif; ?>

    <!-- 公共header内钩子 -->
	<?php if(!empty($plugins_admin_common_header_data) and is_array($plugins_admin_common_header_data)): foreach($plugins_admin_common_header_data as $hook): if(is_string($hook) or is_int($hook)): ?>
				<?php echo $hook; ?>
			<?php endif; ?>
		<?php endforeach; ?>
	<?php endif; ?>
</head>
<script type="text/javascript">
	var __attachment_host__ = '<?php echo htmlentities($attachment_host); ?>';
</script>
<body>
<!-- 公共顶部钩子 -->
<?php if(!empty($plugins_admin_view_common_top_data) and is_array($plugins_admin_view_common_top_data) and (!isset($is_header) or $is_header == 1)): foreach($plugins_admin_view_common_top_data as $hook): if(is_string($hook) or is_int($hook)): ?>
			<?php echo $hook; ?>
		<?php endif; ?>
	<?php endforeach; ?>
<?php endif; ?>

<!-- right content start  -->
<div class="content-right">
    <div class="content">
        <legend>
            <span class="fs-16">
                参数配置
            </span>
            <a href="<?php echo MyUrl('admin/pluginsadmin/index'); ?>" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
        </legend>

        <div class="membershiplevel-content">
            <!-- form start -->

            <!--tab开始-->
            <form id="form1" class="am-form form-validation view-save"
                action="<?php echo PluginsAdminUrl('oss_1jian', 'admin', 'save'); ?>" method="POST" request-type="ajax-url"
                request-value="<?php echo PluginsAdminUrl('oss_1jian', 'admin', 'index'); ?>">

                <div id="TabForm" data-am-widget="tabs" class="am-tabs am-tabs-default" data-am-tabs-noswipe="1">
                    <ul class="am-tabs-nav am-cf">
                        <li class="am-active">
                            <a href="[data-tab-panel-0]">阿里云OSS</a>
                        </li>
                        <li class="">
                            <a href="[data-tab-panel-1]">七牛</a>
                        </li>
                        <li class="">
                            <a href="[data-tab-panel-2]">腾讯云存储</a>
                        </li>
                    </ul>
                    <div class="am-tabs-bd">
                        <div data-tab-panel-0 class="am-tab-panel am-active">

                            <div class="am-form-group">
                                <div class="am-alert am-alert-warning" data-am-alert>
                                    <a href="https://www.aliyun.com/product/oss?source=5176.11533457&userCode=73fmumzt&type=copy"
                                        target="_blank">优惠阿里云oss折扣套餐立即申请</a>
                                </div>
                                <br />
                                <label>阿里云ACCESS_ID</label>
                                <input type="text" name="OSS_ACCESS_ID" placeholder="ACCESS_ID" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['OSS_ACCESS_ID'])): ?>
                                    value="<?php echo htmlentities($data['OSS_ACCESS_ID']); ?>" <?php endif; ?> />
                            </div>


                            <div class="am-form-group">
                                <label>阿里云ACCESS_KEY_SECRET</label>
                                <input type="text" name="OSS_ACCESS_KEY" placeholder="OSS_ACCESS_KEY" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['OSS_ACCESS_KEY'])): ?>
                                    value="<?php echo htmlentities($data['OSS_ACCESS_KEY']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label>阿里云ENDPOINT</label>
                                <input type="text" name="OSS_ENDPOINT" placeholder="OSS_ENDPOINT" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['OSS_ENDPOINT'])): ?>
                                    value="<?php echo htmlentities($data['OSS_ENDPOINT']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label>阿里云BUCKET</label>
                                <input type="text" name="OSS_TEST_BUCKET" placeholder="OSS_BUCKET" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['OSS_TEST_BUCKET'])): ?>
                                    value="<?php echo htmlentities($data['OSS_TEST_BUCKET']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label>阿里云oss域名:如果为空将使用oss默认域名</label>
                                <input type="text" name="OSS_DOMAIN" placeholder="http://oss-cn-beijing.aliyuncs.com"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['OSS_DOMAIN'])): ?>
                                    value="<?php echo htmlentities($data['OSS_DOMAIN']); ?>" <?php endif; ?> />
                            </div>

                            <div class="am-form-group">
                                <label class="block">是否保留文件在web服务器硬盘</label>
                                <input name="is_keep_on_server" value="1" type="checkbox" data-off-text="否"
                                    data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default"
                                    data-handle-width="50" data-am-switch
                                    <?php if((isset($data['is_keep_on_server']) and $data['is_keep_on_server'] == 1) or empty($data)): ?>checked="true"
                                    <?php endif; ?> />
                            </div>


                            <div class="am-form-group">
                                <label class="block">是否启用</label>
                                <input name="storage_type" value="oss" type="radio" data-off-text="否" data-on-text="是"
                                    data-size="xs" data-on-color="success" data-off-color="default"
                                    data-handle-width="50" data-am-switch
                                    <?php if((isset($data['storage_type']) and $data['storage_type'] == 'oss') or empty($data)): ?>checked="true"
                                    <?php endif; ?> />
                            </div>

                            <div class="am-form-group">
                                <label id="msg"></label><img src="" id="test_img" height="100" /> </div>
                            <div class="am-form-group am-form-group-refreshing">

                                <button type="submit" style="float:left;width:120px;"
                                    class=" am-btn am-btn-primary am-radius btn-loading-example am-btn-sm "
                                    data-am-loading="{loadingText:'处理中...'}">保存</button>

                                <button type="button" id="test_oss" style="float:left;width:120px;margin-left:30px;"
                                    class="am-btn am-btn-danger am-radius btn-loading-example am-btn-sm "
                                    data-am-loading="{loadingText:'处理中...'}">测试</button>
                            </div>

                            <!-- form end -->

                        </div>
                        <div data-tab-panel-1 class="am-tab-panel ">




                            <div class="am-form-group">
                                <div class="am-alert am-alert-warning" data-am-alert>
                                    <a href="https://portal.qiniu.com/signup?code=1hjd0zanwtm4y"
                                        target="_blank">七牛对象存储新用户专享礼包申请</a>
                                </div>
                                <br />
                                <label>七牛accessKey</label>
                                <input type="text" name="qiniu_accessKey" placeholder="accessKey" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['qiniu_accessKey'])): ?>
                                    value="<?php echo htmlentities($data['qiniu_accessKey']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label>七牛secretKey</label>
                                <input type="text" name="qiniu_secretKey" placeholder="secretKey" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['qiniu_secretKey'])): ?>
                                    value="<?php echo htmlentities($data['qiniu_secretKey']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label>七牛bucket</label>
                                <input type="text" name="qiniu_bucket" placeholder="bucket" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['qiniu_bucket'])): ?>
                                    value="<?php echo htmlentities($data['qiniu_bucket']); ?>" <?php endif; ?> />
                            </div>

                            <div class="am-form-group">
                                <label>七牛域名</label>
                                <input type="text" name="qiniu_domain" placeholder="http://qiniu.1-jian.vip"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['qiniu_domain'])): ?>
                                    value="<?php echo htmlentities($data['qiniu_domain']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label class="block">是否保留文件在web服务器硬盘</label>
                                <input name="qiniu_is_keep_on_server" value="1" type="checkbox" data-off-text="否"
                                    data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default"
                                    data-handle-width="50" data-am-switch
                                    <?php if((isset($data['qiniu_is_keep_on_server']) and $data['qiniu_is_keep_on_server'] == 1) or empty($data)): ?>checked="true"
                                    <?php endif; ?> />
                            </div>


                            <div class="am-form-group">
                                <label class="block">是否启用</label>
                                <input name="storage_type" value="qiniu" type="radio" data-off-text="否" data-on-text="是"
                                    data-size="xs" data-on-color="success" data-off-color="default"
                                    data-handle-width="50" data-am-switch
                                    <?php if((isset($data['storage_type']) and $data['storage_type'] == 'qiniu') or empty($data)): ?>checked="true"
                                    <?php endif; ?> />
                            </div>

                            <div class="am-form-group">
                                <label id="qiniu_msg"></label><img src="" id="qiniu_test_img" height="100" /> </div>
                            <div class="am-form-group am-form-group-refreshing">

                                <button type="submit" style="float:left;width:120px;"
                                    class=" am-btn am-btn-primary am-radius btn-loading-example am-btn-sm "
                                    data-am-loading="{loadingText:'处理中...'}">保存</button>

                                <button type="button" id="test_qiniu" style="float:left;width:120px;margin-left:30px;"
                                    class="am-btn am-btn-danger am-radius btn-loading-example am-btn-sm "
                                    data-am-loading="{loadingText:'处理中...'}">测试</button>
                            </div>

                            <!-- form end -->
                        </div>
                        <div data-tab-panel-2 class="am-tab-panel ">

                            <div class="am-form-group">
                                <div class="am-alert am-alert-warning" data-am-alert>
                                    <a href="https://cloud.tencent.com/act/cps/redirect?redirect=1020&cps_key=30ec6d50fb8cb2e8d7328ae0f7eaad91&from=console"
                                        target="_blank">腾讯云对象存储折扣申请</a>
                                </div>
                                <br />
                                <label>腾讯云APPID</label>
                                <input type="text" name="TENCENT_APPID" placeholder="APPID" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['TENCENT_APPID'])): ?>
                                    value="<?php echo htmlentities($data['TENCENT_APPID']); ?>" <?php endif; ?> />
                            </div>


                            <div class="am-form-group">
                                <label>腾讯云APPSECRET</label>
                                <input type="text" name="TENCENT_APPSECRET" placeholder="APPSECRET" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['TENCENT_APPSECRET'])): ?>
                                    value="<?php echo htmlentities($data['TENCENT_APPSECRET']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label>腾讯云存储区域</label>
                                <input type="text" name="TENCENT_region" placeholder="region" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['TENCENT_region'])): ?>
                                    value="<?php echo htmlentities($data['TENCENT_region']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label>腾讯云存储桶</label>
                                <input type="text" name="TENCENT_BUCKET" placeholder="TENCENT_BUCKET" minlength="0"
                                    maxlength="130" class="am-radius" <?php if(!empty($data['TENCENT_BUCKET'])): ?>
                                    value="<?php echo htmlentities($data['TENCENT_BUCKET']); ?>" <?php endif; ?> />
                            </div>

                            <div class="am-form-group">
                                <label>腾讯云域名</label>
                                <input type="text" name="tencent_domain"
                                    placeholder="https://1ijan-1252415397.cos.ap-chongqing.myqcloud.com" maxlength="130"
                                    class="am-radius" <?php if(!empty($data['tencent_domain'])): ?>
                                    value="<?php echo htmlentities($data['tencent_domain']); ?>" <?php endif; ?> />
                            </div>
                            <div class="am-form-group">
                                <label class="block">是否保留文件在web服务器硬盘</label>
                                <input name="tencent_is_keep_on_server" value="1" type="checkbox" data-off-text="否"
                                    data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default"
                                    data-handle-width="50" data-am-switch
                                    <?php if((isset($data['tencent_is_keep_on_server']) and $data['tencent_is_keep_on_server'] == 1) or empty($data)): ?>checked="true"
                                    <?php endif; ?> />
                            </div>


                            <div class="am-form-group">
                                <label class="block">是否启用</label>
                                <input name="storage_type" value="tencent" type="radio" data-off-text="否"
                                    data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default"
                                    data-handle-width="50" data-am-switch
                                    <?php if((isset($data['storage_type']) and $data['storage_type'] == 'tencent') or empty($data)): ?>checked="true"
                                    <?php endif; ?> />
                            </div>

                            <div class="am-form-group">
                                <label id="tencent_msg"></label><img src="" id="tencent_test_img" height="100" />
                            </div>
                            <div class="am-form-group am-form-group-refreshing">

                                <button type="submit" style="float:left;width:120px;"
                                    class=" am-btn am-btn-primary am-radius btn-loading-example am-btn-sm "
                                    data-am-loading="{loadingText:'处理中...'}">保存</button>

                                <button type="button" id="test_tencent" style="float:left;width:120px;margin-left:30px;"
                                    class="am-btn am-btn-danger am-radius btn-loading-example am-btn-sm "
                                    data-am-loading="{loadingText:'处理中...'}">测试</button>
                            </div>

                            <!-- form end -->
                        </div>
                    </div>
                </div>
            </form>
            <!--tab结束-->


        </div>
    </div>
</div>
<!-- right content end  -->
<script>

    window.onload = function () {

        $("#test_oss").click(function () {
            $("#msg").html('');
            $("#test_img").attr('src', "");
            var url = "<?php echo PluginsAdminUrl('oss_1jian', 'admin', 'test_oss'); ?>";
            $.ajax({
                url: url,
                type: 'POST',
                cache: false,
                data: $('#form1').serialize(),
                dataType: "json",
                processData: false,
                contentType: false,
                success: function (json) {
                    if (typeof (json.status) == "undefined") {
                        $("#msg").html("上传出错，请检查配置参数:" + json.msg);
                        return;
                    }

                    if (json.status != 1)
                        $("#msg").html(json.msg);
                    else {

                        $("#msg").html('上传成功');
                        $("#test_img").attr('src', json.url);;
                    }
                }
            });


        });


        $("#test_qiniu").click(function () {
            $("#msg").html('');
            $("#test_img").attr('src', "");
            var url = "<?php echo PluginsAdminUrl('oss_1jian', 'admin', 'test_qiniu'); ?>";
            $.ajax({
                url: url,
                type: 'POST',
                cache: false,
                data: $('#form1').serialize(),
                dataType: "json",
                processData: false,
                contentType: false,
                success: function (json) {
                    if (typeof (json.status) == "undefined") {
                        $("#qiniu_msg").html("上传出错，请检查配置参数:" + json.msg);
                        return;
                    }

                    if (json.status != 1)
                        $("#qiniu_msg").html(json.msg);
                    else {

                        $("#qiniu_msg").html('上传成功');
                        $("#qiniu_test_img").attr('src', json.url);;
                    }
                }
            });


        });

        $("#test_tencent").click(function () {
            $("#msg").html('');
            $("#test_img").attr('src', "");
            var url = "<?php echo PluginsAdminUrl('oss_1jian', 'admin', 'test_tencent'); ?>";
            $.ajax({
                url: url,
                type: 'POST',
                cache: false,
                data: $('#form1').serialize(),
                dataType: "json",
                processData: false,
                contentType: false,
                success: function (json) {
                    if (typeof (json.status) == "undefined") {
                        $("#tencent_msg").html("上传出错，请检查配置参数:" + json.msg);
                        return;
                    }

                    if (json.status != 1)
                        $("#tencent_msg").html(json.msg);
                    else {

                        $("#tencent_msg").html('上传成功');
                        $("#tencent_test_img").attr('src', json.url);;
                    }
                }
            });


        });

    }

</script>
<!-- footer start -->
<!-- commom html -->
<textarea id="upload-editor-view" data-url="<?php echo MyUrl('admin/ueditor/index', ['path_type'=>empty($editor_path_type) ? 'common' : $editor_path_type]); ?>" style="display: none;"></textarea>

<!-- 公共底部钩子 -->
<?php if(!empty($plugins_admin_view_common_bottom_data) and is_array($plugins_admin_view_common_bottom_data) and (!isset($is_footer) or $is_footer == 1)): foreach($plugins_admin_view_common_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

</body>
</html>

<!-- 类库 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/jquery/jquery-2.1.0.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/assets/js/amazeui.min.js"></script>

<!-- echarts 图表 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/echarts/echarts.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/echarts/macarons.js"></script>

<!-- ueditor 编辑器 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/ueditor.config.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/ueditor.all.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/ueditor/lang/zh-cn/zh-cn.js"></script>

<!-- 颜色选择器 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/colorpicker/jquery.colorpicker.js"></script>

<!-- 元素拖拽排序插件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/dragsort/jquery.dragsort-0.5.2.min.js"></script>

<!-- 动画数数 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/animation-count-to/animation.count.to.js"></script>

<!-- amazeui插件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-switch/amazeui.switch.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-chosen/amazeui.chosen.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-dialog/amazeui.dialog.min.js"></script>
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/amazeui-tagsinput/amazeui.tagsinput.min.js"></script>

<!-- 日期组件 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/My97DatePicker/WdatePicker.js"></script>

<!-- 元素拖动 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/lib/tdrag/tdrag.min.js"></script>

<!-- 隐藏编辑器初始化 -->
<script type="text/javascript">
    var upload_editor = UE.getEditor("upload-editor-view", {
        isShow: false,
        focus: false,
        enableAutoSave: false,
        autoSyncData: false,
        autoFloatEnabled:false,
        wordCount: false,
        sourceEditor: null,
        scaleEnabled:true,
        toolbars: [["insertimage", "insertvideo", "attachment"]]
    });
</script>

<!-- 项目公共 -->
<script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/common/js/common.js"></script>

<!-- 应用插件公共js -->
<?php if(!empty($plugins_js)): ?>
    <script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($plugins_js); ?>"></script>
<?php endif; ?>

<!-- 当前控制器js -->
<?php if(!empty($module_js)): ?>
    <script type='text/javascript' src="<?php echo htmlentities(__MY_ROOT_PUBLIC__); ?>static/<?php echo htmlentities($module_js); ?>"></script>
<?php endif; ?>

<!-- js钩子 -->
<?php if(!empty($plugins_admin_js_data) and is_array($plugins_admin_js_data)): foreach($plugins_admin_js_data as $hook): if(is_string($hook)): ?>
            <script type='text/javascript' src="<?php echo htmlentities($hook); ?>"></script>
        <?php elseif(is_array($hook)): foreach($hook as $hook_js): if(is_string($hook_js)): ?>
                    <script type='text/javascript' src="<?php echo htmlentities($hook_js); ?>"></script>
                <?php endif; ?>
            <?php endforeach; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>

<!-- 公共页面底部钩子 -->
<?php if(!empty($plugins_admin_common_page_bottom_data) and is_array($plugins_admin_common_page_bottom_data)): foreach($plugins_admin_common_page_bottom_data as $hook): if(is_string($hook) or is_int($hook)): ?>
            <?php echo $hook; ?>
        <?php endif; ?>
    <?php endforeach; ?>
<?php endif; ?>
<!-- footer end -->
